package org.come.control;

import com.tool.image.ImageMixDeal;
import com.tool.image.ManimgAttribute;
import com.tool.imagemonitor.ScriptTask;
import org.come.action.FromServerAction;
import org.come.thread.TimeControlRunnable;


public class JirenjiaobenchuliControl implements FromServerAction
{
    public static String name=null;
    public static String[]  teams=null;
    public static ManimgAttribute duizhang= null;
    @Override
    public void controlMessFromServer(String mes, String type)
//    {
//        // = ActivityJframe.getActivityJframe().getActivityJpanel().getActiveBase().getGuide();
//
//        String []mes1=mes.split("-");
//        name=mes1[1];
//        switch (mes1[0]) {
//            case "域外": {
//                duizhang = ImageMixDeal.Playerimgmap.get(name);//这怎么报错了
////3180-637-1251-300333-999
//                String[] v = {"3180", "637", "1251", "300333", "999"};
//                TimeControlRunnable.addTask(new ScriptTask(v, 105));
//                break;
//            }
////1230-2960-1260-300049-999
//            case "天庭": {
//                duizhang = ImageMixDeal.Playerimgmap.get(name);
//                String[] v = {"1230", "2960", "1260", "300049", "999"};//1230-2960-1260-300049-999
//
//                TimeControlRunnable.addTask(new ScriptTask(v, 102));
//                break;
//            }
////1296-2260-1020-300234-999
//            case "修罗": {
//                duizhang = ImageMixDeal.Playerimgmap.get(name);
//                String[] v = {"1296", "2260", "1020", "300234", "999"};//1207-5190-1890-400023-999
//
//                TimeControlRunnable.addTask(new ScriptTask(v, 104));
//                break;
//            }
//        }
//
//    }
    {

        String []mes1=mes.split("-");
        name=mes1[1];
        String []v=null;
        duizhang=ImageMixDeal.Playerimgmap.get(name);//自动领任务路径
        if ("域外".equals(mes1[0])){

            v= new String[]{"3180", "637", "1251", "300333", "999"};
            TimeControlRunnable.addTask(new ScriptTask(v,105));
        }else if ("修罗".equals(mes1[0])){
            v= new String[]{"1296", "2260", "1020", "300234", "999"};
            TimeControlRunnable.addTask(new ScriptTask(v,104));
        }else if("天庭".equals(mes1[0])){
            v= new String[]{"1230", "2960", "1260", "300049", "999"};
            TimeControlRunnable.addTask(new ScriptTask(v,102));
        }




    }

}
